﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FrameWorkSong;

public class testFrameWork : MonoBehaviourSimplify
{
    // Start is called before the first frame update
    void Start()
    {
        RegisterMsg("test", test);
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            SendMsg("测试方法", "发送成功1"); 
        }
        if (Input.GetKeyDown(KeyCode.B))
        {
            SendMsg("test", "发送成功2");
        }
    }



    void test(object data)
    {
        Debug.Log(data);
    }

    public override void OnBeforeDestroy()
    {
    }
}
